﻿@model Classified.Web.Models.LostPassword
@{
    ViewBag.Title = "Lost Password";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<script src="/Scripts/jquery.unobtrusive-ajax.js" type="text/javascript"></script>
<div class="span11">
    <h2>
        Lost Password</h2>
    @using (Ajax.BeginForm("LostPassword", "Account", new AjaxOptions { HttpMethod = "Post", UpdateTargetId = "link-field", InsertionMode = InsertionMode.Replace, OnSuccess = "$('#link-field').css('color','green');" }))
    { 
        <div id="link-field">
            <fieldset>
                <legend> <h5>Please enter the email address you used to register on Adsx24. We will email
                    you your password.</h5></legend>
                <div class="clear">
                    @Html.LabelFor(x => x.Email)
                    <div class="input">
                        @Html.EditorFor(x => x.Email)
                        @Html.ValidationMessageFor(m => m.Email)
                    </div>
                </div>
                <div class="form-actions">
                    <input type="submit" value="Send Password" class="btn btn-info" />
                </div>
            </fieldset>
        </div>
    }
</div>
